home *** CD-ROM | disk | FTP | other *** search
- /* (C) Copyright 1991 Dave Fritsche (wb8zxu), All Rights Reserved.
- *
- * Redistribution and use in source and binary forms are permitted for
- * non-commercial use, provided that the above copyright notice and this
- * paragraph are duplicated in all such forms. THIS SOFTWARE IS PROVIDED
- * ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
- * WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND
- * FITNESS FOR A PARTICULAR PURPOSE.
- */
- #include <stdio.h>
- #include "screen.h"
-
- int scrn01()
- {
- /* field 1 */
- tx[0] = 2; ty[0] = 6; tsa[0] = 1; tfa[0] = 0;
- strcpy(title[0], "Your full name:");
- ix[0] = 19; iy[0] = 6; isa[0] = 7; ifa[0] = 0;
- strcpy(iif[0], " ");
- strcpy(ift[0], "****************************************");
- strcpy(ifd[0], " ");
- up[0] = 1; dn[0] = 2; l[0] = 1; r[0] = 2;
- rmask[0] = 127;
- /* field 2 */
- tx[1] = 2; ty[1] = 8; tsa[1] = 1; tfa[1] = 0;
- strcpy(title[1], "Street address:");
- ix[1] = 19; iy[1] = 8; isa[1] = 7; ifa[1] = 0;
- strcpy(iif[1], " ");
- strcpy(ift[1], "****************************************");
- strcpy(ifd[1], " ");
- up[1] = 1; dn[1] = 3; l[1] = 1; r[1] = 3;
- rmask[1] = 127;
- /* field 3 */
- tx[2] = 12; ty[2] = 9; tsa[2] = 1; tfa[2] = 0;
- strcpy(title[2], "City:");
- ix[2] = 19; iy[2] = 9; isa[2] = 7; ifa[2] = 0;
- strcpy(iif[2], " ");
- strcpy(ift[2], "****************************************");
- strcpy(ifd[2], " ");
- up[2] = 2; dn[2] = 4; l[2] = 2; r[2] = 4;
- rmask[2] = 127;
- /* field 4 */
- tx[3] = 11; ty[3] = 10; tsa[3] = 1; tfa[3] = 0;
- strcpy(title[3], "State:");
- ix[3] = 19; iy[3] = 10; isa[3] = 7; ifa[3] = 0;
- strcpy(iif[3], " ");
- strcpy(ift[3], "@@");
- strcpy(ifd[3], " ");
- up[3] = 3; dn[3] = 5; l[3] = 3; r[3] = 5;
- rmask[3] = 127;
- /* field 5 */
- tx[4] = 13; ty[4] = 11; tsa[4] = 1; tfa[4] = 0;
- strcpy(title[4], "Zip:");
- ix[4] = 19; iy[4] = 11; isa[4] = 7; ifa[4] = 0;
- strcpy(iif[4], " ");
- strcpy(ift[4], "#####");
- strcpy(ifd[4], " ");
- up[4] = 4; dn[4] = 6; l[4] = 4; r[4] = 6;
- rmask[4] = 127;
- /* field 6 */
- tx[5] = 11; ty[5] = 13; tsa[5] = 1; tfa[5] = 0;
- strcpy(title[5], "Phone:");
- ix[5] = 19; iy[5] = 13; isa[5] = 7; ifa[5] = 0;
- strcpy(iif[5], "( ) - ");
- strcpy(ift[5], "(###)###-####");
- strcpy(ifd[5], "( ) - ");
- up[5] = 5; dn[5] = 11; l[5] = 5; r[5] = 11;
- rmask[5] = 127;
- /* field 7 */
- tx[6] = 46; ty[6] = 15; tsa[6] = 1; tfa[6] = 0;
- strcpy(title[6], "Callsign:");
- ix[6] = 57; iy[6] = 15; isa[6] = 7; ifa[6] = 0;
- strcpy(iif[6], " ");
- strcpy(ift[6], "??????");
- strcpy(ifd[6], " ");
- up[6] = 18; dn[6] = 8; l[6] = 18; r[6] = 8;
- rmask[6] = 127;
- /* field 8 */
- tx[7] = 39; ty[7] = 16; tsa[7] = 1; tfa[7] = 0;
- strcpy(title[7], "Your IP address:");
- ix[7] = 57; iy[7] = 16; isa[7] = 7; ifa[7] = 0;
- strcpy(iif[7], "[000.000.000.000]");
- strcpy(ift[7], "[###.###.###.###]");
- strcpy(ifd[7], "[000.000.000.000]");
- up[7] = 7; dn[7] = 9; l[7] = 7; r[7] = 9;
- rmask[7] = 127;
- /* field 9 */
- tx[8] = 3; ty[8] = 17; tsa[8] = 1; tfa[8] = 0;
- strcpy(title[8], "Require password for remote Super-User access (y/n)?");
- ix[8] = 57; iy[8] = 17; isa[8] = 7; ifa[8] = 0;
- strcpy(iif[8], "n");
- strcpy(ift[8], "@");
- strcpy(ifd[8], "n");
- up[8] = 8; dn[8] = 10; l[8] = 8; r[8] = 10;
- rmask[8] = 127;
- /* field 10 */
- tx[9] = 2; ty[9] = 18; tsa[9] = 1; tfa[9] = 0;
- strcpy(title[9], "Is there a gateway node to be used for routing (y/n)?");
- ix[9] = 57; iy[9] = 18; isa[9] = 7; ifa[9] = 0;
- strcpy(iif[9], "y");
- strcpy(ift[9], "@");
- strcpy(ifd[9], "y");
- up[9] = 9; dn[9] = 19; l[9] = 9; r[9] = 19;
- rmask[9] = 127;
- /* field 11 */
- tx[10] = 62; ty[10] = 6; tsa[10] = 1; tfa[10] = 0;
- strcpy(title[10], "Use com1 (y/n)?");
- ix[10] = 78; iy[10] = 6; isa[10] = 7; ifa[10] = 0;
- strcpy(iif[10], "y");
- strcpy(ift[10], "@");
- strcpy(ifd[10], "y");
- up[10] = 6; dn[10] = 12; l[10] = 6; r[10] = 12;
- rmask[10] = 127;
- /* field 12 */
- tx[11] = 62; ty[11] = 7; tsa[11] = 1; tfa[11] = 0;
- strcpy(title[11], "Use com2 (y/n)?");
- ix[11] = 78; iy[11] = 7; isa[11] = 7; ifa[11] = 0;
- strcpy(iif[11], "n");
- strcpy(ift[11], "@");
- strcpy(ifd[11], "n");
- up[11] = 11; dn[11] = 13; l[11] = 11; r[11] = 13;
- rmask[11] = 127;
- /* field 13 */
- tx[12] = 62; ty[12] = 8; tsa[12] = 1; tfa[12] = 0;
- strcpy(title[12], "Use com3 (y/n)?");
- ix[12] = 78; iy[12] = 8; isa[12] = 7; ifa[12] = 0;
- strcpy(iif[12], "n");
- strcpy(ift[12], "@");
- strcpy(ifd[12], "n");
- up[12] = 12; dn[12] = 14; l[12] = 12; r[12] = 14;
- rmask[12] = 127;
- /* field 14 */
- tx[13] = 62; ty[13] = 9; tsa[13] = 1; tfa[13] = 0;
- strcpy(title[13], "Use com4 (y/n)?");
- ix[13] = 78; iy[13] = 9; isa[13] = 7; ifa[13] = 0;
- strcpy(iif[13], "n");
- strcpy(ift[13], "@");
- strcpy(ifd[13], "n");
- up[13] = 13; dn[13] = 15; l[13] = 13; r[13] = 15;
- rmask[13] = 127;
- /* field 15 */
- tx[14] = 61; ty[14] = 10; tsa[14] = 1; tfa[14] = 0;
- strcpy(title[14], "DRSI ch 1 (y/n)?");
- ix[14] = 78; iy[14] = 10; isa[14] = 7; ifa[14] = 0;
- strcpy(iif[14], "n");
- strcpy(ift[14], "@");
- strcpy(ifd[14], "n");
- up[14] = 14; dn[14] = 16; l[14] = 14; r[14] = 16;
- rmask[14] = 127;
- /* field 16 */
- tx[15] = 61; ty[15] = 11; tsa[15] = 1; tfa[15] = 0;
- strcpy(title[15], "DRSI ch 2 (y/n)?");
- ix[15] = 78; iy[15] = 11; isa[15] = 7; ifa[15] = 0;
- strcpy(iif[15], "n");
- strcpy(ift[15], "@");
- strcpy(ifd[15], "n");
- up[15] = 15; dn[15] = 17; l[15] = 15; r[15] = 17;
- rmask[15] = 127;
- /* field 17 */
- tx[16] = 60; ty[16] = 12; tsa[16] = 1; tfa[16] = 0;
- strcpy(title[16], "PC100 ch 1 (y/n)?");
- ix[16] = 78; iy[16] = 12; isa[16] = 7; ifa[16] = 0;
- strcpy(iif[16], "n");
- strcpy(ift[16], "@");
- strcpy(ifd[16], "n");
- up[16] = 16; dn[16] = 18; l[16] = 16; r[16] = 18;
- rmask[16] = 127;
- /* field 18 */
- tx[17] = 60; ty[17] = 13; tsa[17] = 1; tfa[17] = 0;
- strcpy(title[17], "PC100 ch 2 (y/n)?");
- ix[17] = 78; iy[17] = 13; isa[17] = 7; ifa[17] = 0;
- strcpy(iif[17], "n");
- strcpy(ift[17], "@");
- strcpy(ifd[17], "n");
- up[17] = 17; dn[17] = 7; l[17] = 17; r[17] = 7;
- rmask[17] = 127;
- /* field 19 */
- tx[18] = 21; ty[18] = 19; tsa[18] = 1; tfa[18] = 0;
- strcpy(title[18], "Is NETROM support necessary (y/n)?");
- ix[18] = 57; iy[18] = 19; isa[18] = 7; ifa[18] = 0;
- strcpy(iif[18], "n");
- strcpy(ift[18], "@");
- strcpy(ifd[18], "n");
- up[18] = 10; dn[18] = 20; l[18] = 10; r[18] = 20;
- rmask[18] = 127;
- /* field 20 */
- tx[19] = 21; ty[19] = 20; tsa[19] = 1; tfa[19] = 0;
- strcpy(title[19], "Disk drive to install software on:");
- ix[19] = 57; iy[19] = 20; isa[19] = 7; ifa[19] = 0;
- strcpy(iif[19], "c:");
- strcpy(ift[19], "@:");
- strcpy(ifd[19], "c:");
- up[19] = 19; dn[19] = 21; l[19] = 19; r[19] = 21;
- rmask[19] = 127;
- /* field 21 */
- tx[20] = 3; ty[20] = 21; tsa[20] = 1; tfa[20] = 0;
- strcpy(title[20], "Directory 'path' to the software:");
- ix[20] = 38; iy[20] = 21; isa[20] = 7; ifa[20] = 0;
- strcpy(iif[20], "\\ ");
- strcpy(ift[20], "\\***************************************");
- strcpy(ifd[20], "\\ ");
- up[20] = 20; dn[20] = 21; l[20] = 20; r[20] = 21;
- rmask[20] = 127;
-
- nfields = 21;
-
- clrscr();
- box(1, 1, 80, 24, 2);
- addlin(1, 5, 80, 2);
- addlin(1, 14, 80, 2);
- addlin(1, 22, 80, 2);
- puttxt(60, 1, 0, 0, TITLE);
- puttxt(22, 3, 1, 0, "KA9Q (NOS) TCP/IP Software Installation");
- puttxt(8, 23, 1, 0, "ESC = Quit, F1 = next screen, = previous field, = next field");
- screen();
- }
-